﻿using System;

namespace HML
{
    /// <summary>
    /// 两个TabItem位置互换后事件参数
    /// </summary>
    public class TabControlPlusTabItemInterchangedEventArgs : EventArgs
    {
        private readonly TabPagePlus currentTabPage;
        /// <summary>
        /// 当前要移动的TabPage
        /// </summary>
        public TabPagePlus CurrentTabPage
        {
            get { return this.currentTabPage; }
        }

        private readonly TabPagePlus targetTabPage;
        /// <summary>
        /// 当前要移动的目标TabPage
        /// </summary>
        public TabPagePlus TargetTabPage
        {
            get { return this.targetTabPage; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="currentTabPage">当前要移动的TabPage</param>
        /// <param name="targetTabPage">当前要移动的目标TabPage</param>
        public TabControlPlusTabItemInterchangedEventArgs(TabPagePlus currentTabPage, TabPagePlus targetTabPage)
        {
            this.currentTabPage = currentTabPage;
            this.targetTabPage = targetTabPage;
        }

    }

}
